package com.zhiyou100.mapper;

import com.zhiyou100.entity.Attendance;
import com.zhiyou100.entity.Student;
import com.zhiyou100.entity.StudentParent;
import com.zhiyou100.mappers.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface StudentMapper extends MyMapper<Student> {
    @Select("select * from student where sgid=#{gid}")
    public List<Student> getAllByGid(Integer gid);

}